<h2>
    系统环境检查
    <span class="toggle-btn" onclick="toggleSystemCheck()" style="font-size: 14px; font-weight: normal; margin-left: 10px;">
        <span id="system-check-toggle-text">{{SYSTEM_CHECK_TOGGLE_TEXT}}</span>
    </span>
</h2>

<div id="system-check-details" style="display: {{SYSTEM_CHECK_DISPLAY}};">

<!-- PHP版本 -->
<div class="requirement {{PHP_VERSION_STATUS}}">
    <strong>PHP版本:</strong> {{PHP_VERSION}}
    <small>(要求: {{REQUIRED_PHP_VERSION}})</small>
</div>

<!-- PHP扩展 -->
<div class="requirement">
    <strong>PHP扩展:</strong>
    <span class="toggle-btn" onclick="toggleExtensions()">
        <span id="extensions-toggle-text">展开</span>
    </span>
    <div
        id="extensions-list"
        style="display: none; margin-top: 10px; margin-left: 20px"
    >
        {{PHP_EXTENSIONS_LIST}}
    </div>
    <div style="margin-top: 15px">{{PHP_EXTENSIONS_SUMMARY}}</div>
</div>

<!-- 必需的PHP函数 -->
<div class="requirement">
    <strong>必需的PHP函数:</strong>
    <span class="toggle-btn" onclick="toggleRequiredFunctions()">
        <span id="required-functions-toggle-text">展开</span>
    </span>
    <div
        id="required-functions-list"
        style="display: none; margin-top: 10px; margin-left: 20px"
    >
        {{REQUIRED_PHP_FUNCTIONS_LIST}}
    </div>
    <div style="margin-top: 15px">{{REQUIRED_PHP_FUNCTIONS_SUMMARY}}</div>
</div>

<!-- 可选的PHP函数 -->
<div class="requirement">
    <strong>可选的PHP函数:</strong>
    <span class="toggle-btn" onclick="toggleOptionalFunctions()">
        <span id="optional-functions-toggle-text">展开</span>
    </span>
    <div
        id="optional-functions-list"
        style="display: none; margin-top: 10px; margin-left: 20px"
    >
        {{OPTIONAL_PHP_FUNCTIONS_LIST}}
    </div>
    <div style="margin-top: 15px">{{OPTIONAL_PHP_FUNCTIONS_SUMMARY}}</div>
</div>

<!-- 目录权限 -->
<div class="requirement">
    <strong>目录权限:</strong>
    <span class="toggle-btn" onclick="togglePermissions()">
        <span id="permissions-toggle-text">展开</span>
    </span>
    <div
        id="permissions-list"
        style="display: none; margin-top: 10px; margin-left: 20px"
    >
        {{DIRECTORY_PERMISSIONS_LIST}}
    </div>
    <div style="margin-top: 15px">{{DIRECTORY_PERMISSIONS_SUMMARY}}</div>
</div>

<!-- Composer -->
<div class="requirement {{COMPOSER_STATUS}}">
    <strong>Composer:</strong> {{COMPOSER_VALUE}}
    <small>(要求: 必须安装)</small>
</div>

<!-- Java -->
<div class="requirement {{JAVA_STATUS}}">
    <strong>Java:</strong> {{JAVA_VALUE}}
    <small>(要求: 推荐安装 (用于生成JKS证书))</small>
</div>

</div>

<!-- 系统检查摘要 -->
<div id="system-check-summary" style="display: {{SYSTEM_CHECK_SUMMARY_DISPLAY}};">
    {{SYSTEM_CHECK_SUMMARY_CONTENT}}
</div>

<!-- 错误信息 -->
{{ERRORS_SECTION}}

<!-- 警告信息 -->
{{WARNINGS_SECTION}}
